﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using Unis.Framework.ORM.Attributes;


namespace KingRoad.EPM.SafetyManagementEntity.Model
{
    /// <summary> 
    /// 文件生成时间 2017/2/9 14:59:09
    /// </summary> 
    [Serializable]
    [ModelMap("Scm_CostPlan", new string[] { "Cp_ID" })]
    public class ScmCostplanInfo : BaseEntity
    {
        public ScmCostplanInfo()
        {

        }
        
        
        private string _cpId;
        /// <summary>
        /// 计划子表ID
        /// </summary>
        [ColumnMap("Cp_ID", System.Data.DbType.String)]
        public string Cp_ID
        {
            get {return _cpId;}
            set
            {
                if (object.Equals(this._cpId, value) != true)
                {
                    this._cpId = value;
                    this.RaisePropertyChanged("Cp_ID");
                }
            }
        }
        
        
        private string _cpmId;
        /// <summary>
        /// 计划主表ID
        /// </summary>
        [ColumnMap("Cpm_ID", System.Data.DbType.String)]
        public string Cpm_ID
        {
            get {return _cpmId;}
            set
            {
                if (object.Equals(this._cpmId, value) != true)
                {
                    this._cpmId = value;
                    this.RaisePropertyChanged("Cpm_ID");
                }
            }
        }
        
        
        private string _cpItem;
        /// <summary>
        /// 凭证名目
        /// </summary>
        [ColumnMap("Cp_Item", System.Data.DbType.String)]
        public string Cp_Item
        {
            get {return _cpItem;}
            set
            {
                if (object.Equals(this._cpItem, value) != true)
                {
                    this._cpItem = value;
                    this.RaisePropertyChanged("Cp_Item");
                }
            }
        }
        
        
        private decimal? _cpAmount;
        /// <summary>
        /// 上报金额
        /// </summary>
        [ColumnMap("Cp_Amount", System.Data.DbType.Decimal)]
        public decimal? Cp_Amount
        {
            get {return _cpAmount;}
            set
            {
                if (object.Equals(this._cpAmount, value) != true)
                {
                    this._cpAmount = value;
                    this.RaisePropertyChanged("Cp_Amount");
                }
            }
        }
        
        
        private decimal? _cpAdd;
        /// <summary>
        /// 追加金额
        /// </summary>
        [ColumnMap("Cp_Add", System.Data.DbType.Decimal)]
        public decimal? Cp_Add
        {
            get {return _cpAdd;}
            set
            {
                if (object.Equals(this._cpAdd, value) != true)
                {
                    this._cpAdd = value;
                    this.RaisePropertyChanged("Cp_Add");
                }
            }
        }
        
        
        private decimal? _cpDeduct;
        /// <summary>
        /// 扣除金额
        /// </summary>
        [ColumnMap("Cp_Deduct", System.Data.DbType.Decimal)]
        public decimal? Cp_Deduct
        {
            get {return _cpDeduct;}
            set
            {
                if (object.Equals(this._cpDeduct, value) != true)
                {
                    this._cpDeduct = value;
                    this.RaisePropertyChanged("Cp_Deduct");
                }
            }
        }
        
        
        private decimal? _cpActualamount;
        /// <summary>
        /// 实际金额
        /// </summary>
        [ColumnMap("Cp_ActualAmount", System.Data.DbType.Decimal)]
        public decimal? Cp_ActualAmount
        {
            get {return _cpActualamount;}
            set
            {
                if (object.Equals(this._cpActualamount, value) != true)
                {
                    this._cpActualamount = value;
                    this.RaisePropertyChanged("Cp_ActualAmount");
                }
            }
        }
        
        
        private string _cpRemark;
        /// <summary>
        /// 备注
        /// </summary>
        [ColumnMap("Cp_Remark", System.Data.DbType.String)]
        public string Cp_Remark
        {
            get {return _cpRemark;}
            set
            {
                if (object.Equals(this._cpRemark, value) != true)
                {
                    this._cpRemark = value;
                    this.RaisePropertyChanged("Cp_Remark");
                }
            }
        }
        
        
    }
}



